package com.glaway.car.mapper;

import com.glaway.car.entity.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface AdminMapper {

    @Select("select id, permission, username from admin where username = #{username} and password = #{password}")
    Admin getUsernameAndPermission(Admin admin);
}
